package cn.ejiajunxy.manager.model;

import java.util.List;

/**
 * Created by zhangguobao on 2018/3/13.
 */

public class OrderModel extends BaseModel {

    /**
     * orderList : [{"orderId":"12cb8fc8-a719-48d5-b3ad-22a637d5ecd8","remark":null,"orderStatus":2,"amount":321,"orderCode":"20180222162443343958","orderDate":"/Date(1520931544127)/","payDate":"/Date(-62135596800000)/","account":{"AccountId":null,"MobilePhone":"+8618624423286","Email":null,"UserName":"gxq","Password":null,"Status":0,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/"},"address":{"id":2,"contactName":null,"contactAddress":"wrwrwer","contactMobile":"18624423286","gender":false,"status":0,"accountId":null,"districtId":0,"districtName":"","schoolId":0,"schoolName":"","dorm":"","isDefault":false},"shop":{"shopId":6,"shopName":"were","ownerId":null,"ownerName":null,"startTime":"","endTime":""},"shoppingCartList":[{"CartId":null,"AccountId":null,"ProductId":null,"Quantity":1,"OrderId":null,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/","Product":{"productId":null,"productName":"爆米花","productCode":null,"shortDescription":null,"unit":null,"description":null,"saleStatus":0,"addedDate":"/Date(-62135596800000)/","marketPrice":0,"vipPrice":0,"brand":null,"suppliersId":null,"productType":null,"productAttribute":null,"images":null},"ShopId":0,"Amount":0,"VIPAmount":0},{"CartId":null,"AccountId":null,"ProductId":null,"Quantity":1,"OrderId":null,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/","Product":{"productId":null,"productName":"爆米花","productCode":null,"shortDescription":null,"unit":null,"description":null,"saleStatus":0,"addedDate":"/Date(-62135596800000)/","marketPrice":0,"vipPrice":0,"brand":null,"suppliersId":null,"productType":null,"productAttribute":null,"images":null},"ShopId":0,"Amount":0,"VIPAmount":0}]},{"orderId":"12cb8fc8-a719-48d5-b3ad-22a637d5ecd8","remark":null,"orderStatus":2,"amount":321,"orderCode":"20180222162443343958","orderDate":"/Date(1520931544127)/","payDate":"/Date(-62135596800000)/","account":{"AccountId":null,"MobilePhone":"+8618624423286","Email":null,"UserName":"gxq","Password":null,"Status":0,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/"},"address":{"id":2,"contactName":null,"contactAddress":"wrwrwer","contactMobile":"18624423286","gender":false,"status":0,"accountId":null,"districtId":0,"districtName":"","schoolId":0,"schoolName":"","dorm":"","isDefault":false},"shop":{"shopId":6,"shopName":"were","ownerId":null,"ownerName":null,"startTime":"","endTime":""},"shoppingCartList":[{"CartId":null,"AccountId":null,"ProductId":null,"Quantity":1,"OrderId":null,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/","Product":{"productId":null,"productName":"爆米花","productCode":null,"shortDescription":null,"unit":null,"description":null,"saleStatus":0,"addedDate":"/Date(-62135596800000)/","marketPrice":0,"vipPrice":0,"brand":null,"suppliersId":null,"productType":null,"productAttribute":null,"images":null},"ShopId":0,"Amount":0,"VIPAmount":0},{"CartId":null,"AccountId":null,"ProductId":null,"Quantity":1,"OrderId":null,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/","Product":{"productId":null,"productName":"爆米花","productCode":null,"shortDescription":null,"unit":null,"description":null,"saleStatus":0,"addedDate":"/Date(-62135596800000)/","marketPrice":0,"vipPrice":0,"brand":null,"suppliersId":null,"productType":null,"productAttribute":null,"images":null},"ShopId":0,"Amount":0,"VIPAmount":0}]}]
     * status : 0
     */

    public int status;
    public List<OrderListBean> orderList;

    public static class OrderListBean {
        /**
         * orderId : 12cb8fc8-a719-48d5-b3ad-22a637d5ecd8
         * remark : null
         * orderStatus : 2
         * amount : 321
         * orderCode : 20180222162443343958
         * orderDate : /Date(1520931544127)/
         * payDate : /Date(-62135596800000)/
         * account : {"AccountId":null,"MobilePhone":"+8618624423286","Email":null,"UserName":"gxq","Password":null,"Status":0,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/"}
         * address : {"id":2,"contactName":null,"contactAddress":"wrwrwer","contactMobile":"18624423286","gender":false,"status":0,"accountId":null,"districtId":0,"districtName":"","schoolId":0,"schoolName":"","dorm":"","isDefault":false}
         * shop : {"shopId":6,"shopName":"were","ownerId":null,"ownerName":null,"startTime":"","endTime":""}
         * shoppingCartList : [{"CartId":null,"AccountId":null,"ProductId":null,"Quantity":1,"OrderId":null,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/","Product":{"productId":null,"productName":"爆米花","productCode":null,"shortDescription":null,"unit":null,"description":null,"saleStatus":0,"addedDate":"/Date(-62135596800000)/","marketPrice":0,"vipPrice":0,"brand":null,"suppliersId":null,"productType":null,"productAttribute":null,"images":null},"ShopId":0,"Amount":0,"VIPAmount":0},{"CartId":null,"AccountId":null,"ProductId":null,"Quantity":1,"OrderId":null,"CreateTime":"/Date(-62135596800000)/","UpdateTime":"/Date(-62135596800000)/","Product":{"productId":null,"productName":"爆米花","productCode":null,"shortDescription":null,"unit":null,"description":null,"saleStatus":0,"addedDate":"/Date(-62135596800000)/","marketPrice":0,"vipPrice":0,"brand":null,"suppliersId":null,"productType":null,"productAttribute":null,"images":null},"ShopId":0,"Amount":0,"VIPAmount":0}]
         */

        public String orderId;
        public Object remark;
        public int orderStatus;
        public int amount;
        public String orderCode;
        public String orderDate;
        public String payDate;
        public AccountBean account;
        public AddressBean address;
        public ShopBean shop;
        public List<ShoppingCartListBean> shoppingCartList;

        public static class AccountBean {
            /**
             * AccountId : null
             * MobilePhone : +8618624423286
             * Email : null
             * UserName : gxq
             * Password : null
             * Status : 0
             * CreateTime : /Date(-62135596800000)/
             * UpdateTime : /Date(-62135596800000)/
             */

            public Object AccountId;
            public String MobilePhone;
            public Object Email;
            public String UserName;
            public Object Password;
            public int Status;
            public String CreateTime;
            public String UpdateTime;
        }

        public static class AddressBean {
            /**
             * id : 2
             * contactName : null
             * contactAddress : wrwrwer
             * contactMobile : 18624423286
             * gender : false
             * status : 0
             * accountId : null
             * districtId : 0
             * districtName :
             * schoolId : 0
             * schoolName :
             * dorm :
             * isDefault : false
             */

            public int id;
            public Object contactName;
            public String contactAddress;
            public String contactMobile;
            public boolean gender;
            public int status;
            public Object accountId;
            public int districtId;
            public String districtName;
            public int schoolId;
            public String schoolName;
            public String dorm;
            public boolean isDefault;
        }

        public static class ShopBean {
            /**
             * shopId : 6
             * shopName : were
             * ownerId : null
             * ownerName : null
             * startTime :
             * endTime :
             */

            public int shopId;
            public String shopName;
            public Object ownerId;
            public Object ownerName;
            public String startTime;
            public String endTime;
        }

        public static class ShoppingCartListBean {
            /**
             * CartId : null
             * AccountId : null
             * ProductId : null
             * Quantity : 1
             * OrderId : null
             * CreateTime : /Date(-62135596800000)/
             * UpdateTime : /Date(-62135596800000)/
             * Product : {"productId":null,"productName":"爆米花","productCode":null,"shortDescription":null,"unit":null,"description":null,"saleStatus":0,"addedDate":"/Date(-62135596800000)/","marketPrice":0,"vipPrice":0,"brand":null,"suppliersId":null,"productType":null,"productAttribute":null,"images":null}
             * ShopId : 0
             * Amount : 0
             * VIPAmount : 0
             */

            public Object CartId;
            public Object AccountId;
            public Object ProductId;
            public int Quantity;
            public Object OrderId;
            public String CreateTime;
            public String UpdateTime;
            public ProductBean Product;
            public int ShopId;
            public float Amount;
            public int VIPAmount;

            public static class ProductBean {
                /**
                 * productId : null
                 * productName : 爆米花
                 * productCode : null
                 * shortDescription : null
                 * unit : null
                 * description : null
                 * saleStatus : 0
                 * addedDate : /Date(-62135596800000)/
                 * marketPrice : 0
                 * vipPrice : 0
                 * brand : null
                 * suppliersId : null
                 * productType : null
                 * productAttribute : null
                 * images : null
                 */

                public Object productId;
                public String productName;
                public Object productCode;
                public Object shortDescription;
                public Object unit;
                public Object description;
                public int saleStatus;
                public String addedDate;
                public int marketPrice;
                public int vipPrice;
                public Object brand;
                public Object suppliersId;
                public Object productType;
                public Object productAttribute;
                public Object images;
            }
        }
    }
}
